﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/MasterPage.Master" AutoEventWireup="true" CodeBehind="AddDiscussion.aspx.cs" Inherits="DrivingCRM.Views.Private.Forum.AddDiscussion" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="banniere" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="nav" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenu" runat="server">
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=Model_DrivingCRMContainer" 
        DefaultContainerName="Model_DrivingCRMContainer" EnableFlattening="False" 
        EntitySetName="DiscussionSet" EntityTypeFilter="Discussion">
    </asp:EntityDataSource>

<h2>Ajouter une discussion</h2>
<br />
<p>Titre de la discussion : </p>
    <asp:TextBox ID="TB_Title" runat="server" style="margin-left: 0px" Width="208px"/>
    <asp:RequiredFieldValidator ID="TitleRequired" runat="server" 
                        ControlToValidate="TB_Title" ErrorMessage="Le titre est requis." 
                        ToolTip="Le titre est requis." ValidationGroup="AddNewDiscussion">*</asp:RequiredFieldValidator>
    <br /><br />
    <telerik:RadEditor ID="RE_Description" runat="server">
    </telerik:RadEditor>
    <asp:RequiredFieldValidator ID="ContentRequired" runat="server" 
            ControlToValidate="RE_Description" ErrorMessage="La description est requise." 
            ToolTip="La description est requise." ValidationGroup="AddNewDiscussion">*</asp:RequiredFieldValidator>
    <br /><br />
    <asp:Label ID="L_ErrorMessage" runat="server"></asp:Label>
    <asp:Button ID="Insert_button" runat="server" Text="Ajouter la discussion" onclick="Insert_button_Click" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="footer" runat="server">
</asp:Content>
